/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.javatrainning.hieptq.btvn1;

import java.util.Scanner;

/**
 *
 * @author Hiep
 */
public class Bai3 {
    public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		System.out.print("Nhap so nguyen n: ");
		int n=sc.nextInt();
		int i=2;
		while(n>1){
			if(n%i==0){
				System.out.print(" "+i);
				
			n=n/i;
			}
			else i++;
			}
	   }

}
